package com.onpositive.gamemaker.objects;

public class BasicGameObject implements IGameObject
{
	protected int x;
	protected int y;
	
	public BasicGameObject(GameObjectType gameObjectType, int x, int y)
	{
		super();
		this.x = x;
		this.y = y;
		this.gameObjectType = gameObjectType;
	}

	public BasicGameObject(GameObjectType gameObjectType)
	{
		super();
		this.gameObjectType = gameObjectType;
	}

	protected GameObjectType gameObjectType;

	@Override
	public int getX()
	{
		return x;
	}

	@Override
	public int getY()
	{
		return y;
	}

	@Override
	public GameObjectType getType()
	{
		return gameObjectType;
	}
	
	@Override
	public void setPosition(int x, int y)
	{
		this.x = x;
		this.y = y;
	}

}
